from django.contrib.auth.models import AbstractUser
from django.db import models

class User(AbstractUser):
    # 增加手机号的字段
    mobile = models.CharField(max_length=11,unique=True)
    #增加邮箱字段
    email_active = models.BooleanField(default=False)
    class Meta:
        db_table ="tb_users"

    def __str__(self):

        return self.username
